package com.lobo.blog.service;

import com.github.pagehelper.PageInfo;
import com.lobo.blog.entity.Type;
import com.lobo.blog.exception.AllReadyBeenDeletedException;
import com.lobo.blog.exception.TypeNotFoundException;

import java.util.List;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/9/29
 * @description:
 */
public interface TypeService {

    Type getTypeByTypeId(Integer typeId) throws TypeNotFoundException;

    List<Type> getAllType();

    PageInfo<Type> getTypes(Integer pageNum);

    List<Type> getTopTypeBySize(Integer size);
}
